package com.wnxy.portal.api;

import com.wnxy.portal.api.fallback.MemberClientFallback;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 会员微服务feign客户端调用接口
 */
@FeignClient(value = "cinema-member-service",fallback = MemberClientFallback.class) // 服务id
public interface MemberClient {
    @GetMapping("/member/{id}")
    String findOne(@PathVariable("id") String id);

    @GetMapping("/timeout")
    String findTimeout();
}

